#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
    int n = 0;
    int time = 2;
    scanf("%d", &n);
    if (n <= 12)
        printf("%d", time);
    else
    {
        if (n % 12 > 0)
            printf("%d", time * 2 * (n / 12) + 2);
        if (n % 12 == 0)
            printf("%d", time * 2 * (n / 12)) - 2;
    }
}